import Vue from 'vue'
import VueRouter from 'vue-router'
import Test from '../views/Test.vue'
import My from '../views/My.vue'
import Login from '../views/Login.vue'
import Message from '../views/Message.vue'
import City from '../views/City.vue'
import Sequence from '../views/Sequence.vue'
import Sequence2 from '../views/Sequence2.vue'
import Random from '../views/Random.vue'
import Random2 from '../views/Random2.vue'
import MockTest from '../views/MockTest.vue'
import Score from '../views/Score.vue'
import ChapterPractice from '../views/ChapterPractice.vue'
import Vip from '../views/Vip.vue'

import { Tab, Tabs } from 'vant';
import { Swipe, SwipeItem } from 'vant';
import { Toast } from 'vant';




Vue.use(VueRouter)
Vue.use(Tab);
Vue.use(Tabs);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Toast)

const routes = [
  {
    path: '/',
    name: 'Test',
    alias:'/test',
    component: Test,
      
   
  },
  {
    path:'/mocktest',
    name:'MockTest',
    component:MockTest
  },
  {
    path:'/score',
    name:'Score',
    component:Score
  },
  {
    path:'/vip',
    name:'Vip',
    component:Vip
  },
  {
    path:'/chapterpractice',
    name:'ChapterPractice',
    component:ChapterPractice
  },
    {
    path: '/sequence',
    name:'Sequence',
    component:Sequence
    },
    {
      path: '/sequence2',
      name:'Sequence2',
      component:Sequence2
      },
    {
      path: '/random',
      name:'Random',
      component:Random
      },
      {
        path: '/random2',
        name:'Random2',
        component:Random2
        },
  

  {
    name:'Login',
    path:'/login',
    component:Login
    
  },
  {
    name:'Message',
    path:'/message',
    component:Message
    
  },
  {
    name:'City',
    path:'/city',
    component:City
    
  }, 
  {
    path: '/my',
    name: 'My',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: My
  },

]

const router = new VueRouter({
  routes
})

export default router
